namespace 项目01;
class Student
{
    public string name;
    public string id;
    public string gender;
    public int age;
    public Phone phone;

    public string GetInfo()
    {
        return $"姓名:{name}\n身份证:{id}\n性别:{gender}\n年龄:{age}\n手机型号:{phone.型号}\n手机号码:{phone.号码}";
    }

    public Student(string 姓名, string 身份证, string 性别, int 年龄, string 手机型号, string 手机号码)
    {
        name = 姓名;
        id = 身份证;
        gender = 性别;
        age = 年龄;
        phone = new Phone(姓名, 手机型号, 手机号码);
    }
}